<div class="titlebar"><i class="iconfont icon-text_icon"></i>会员列表</div>
<div id="actionbar">
    <div class="fn-right">
        <form class="input-group" id="form" action="{:url('ecardUser/index')}" method="get">
            <input type="hidden" name="types" value="{$types}">
            <input type="hidden" name="time" value="{$time}">
            <input placeholder="开始时间" class="input w100 ui-date" type="text" name="starttime" value="{$starttime}" autocomplete="off"/>
            <input placeholder="结束时间" class="input w100 ui-date" type="text" name="endtime" value="{$endtime}" autocomplete="off"/>
            <input placeholder="请输入用户名称/手机号" class="input w200" type="text" name="keyword" value="{$keyword}" />
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
    <div class="fn-right button-group">
        <a href="{:url('ecardUser/index',['time' => 1,'types' =>$types])}" class="button{$time==1?' button-violet':''}">今日</a>
        <a href="{:url('ecardUser/index',['time' => 2,'types' =>$types])}" class="button{$time==2?' button-violet':''}">昨日</a>
        <a href="{:url('ecardUser/index',['time' => 30,'types' =>$types])}" class="button{$time==30?' button-violet':''}">本月</a>
        <a href="{:url('ecardUser/index',['time' => 60,'types' =>$types])}" class="button{$time==60?' button-violet':''}">上月</a>
    </div>
    <div class="fn-left">
        <a href="{:url('ecardUser/index',['types' =>'0','time' =>$time])}" class="button {if $types == '0'} button-green{/if}">正常</a>
        <a href="{:url('ecardUser/index',['types' =>'1','time' =>$time])}" class="button {if $types == '1'} button-green{/if}">删除</a>
        <a href="{:url('ecardUser/index',['types' =>'2','time' =>$time])}" class="button {if $types == '2'} button-green{/if}">失效</a>
    </div>
</div>
<div class="cards">
    <div class="card green">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$normal}</div><div class="text">正常数量</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$delete}</div><div class="text">删除数量</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$invalid}</div><div class="text">失效数量</div></div>
    </div>
</div>
<table class="table table-border">
    <thead>
    <tr>
        <th class="w60 fn-tac"></th>
        <th>昵称</th>
        <th class="w150 fn-tac">手机号</th>
        <th class="w200 fn-tac">卡号</th>
        <th class="w150 fn-tac">状态</th>
        <th class="w200 fn-tac">IP</th>
        <th class="w200 fn-tac">加入时间</th>
    </tr>
    </thead>
    <tbody>
    {foreach $lists as $vo}
    <tr>
        <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
        <td><a href="javascript:;" url="{:url('ecard_user/order',['uid'=>$vo.uid])}" class="fn-fb select">{$vo.user.nickname}</a></td>
        <td class="fn-tac">{$vo.user.phone_uid}</td>
        <td class="fn-tac">{$vo.code}</td>
        <td class="fn-tac">{if $vo.is_del == 0}正常{elseif $vo.is_del == 1 /}删除{elseif $vo.is_del == 2 /}失效{/if}</td>
        <td class="fn-tac">{$vo.user.login_ip}</td>
        <td class="fn-tac">{$vo.create_time|date='Y-m-d H:i'}</td>
    </tr>
    {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
    Do('base','form','layer','tip','date', function () {
        $('#form').isForm({types:1});
        $('.select').win()
    })
</script>